package group2assignone.ucm.administrator;

import group2assignone.model.Manager;
import group2assignone.ucm.UCController;
import group2assignone.view.administrator.EditManagerView;

/**
 *public class UCCancelEditManager implements UCController
 * This is the class for the cancell edit manager button
 * it recieves the edit manager view as a paramater and disposes of it
 * and returns to the main administrator view
 * @author group2
 */
public class UCCancelEditManager implements UCController {

    private Manager model;
    private EditManagerView view;

    public UCCancelEditManager(Manager m, EditManagerView v) {
        model = m;
        view = v;
    }

    /**
     * Use Case: Cancel edit Manager
     * Pre-Condition: Edit Manager UI
     * Post-Condition: UI is updated
     * 1. Customer clicks Cancel button
     * 2. System discards entered data
     * 3. System returns to main admin view
     */
    public void run() {
        UCUIAdminMainView uc = new UCUIAdminMainView();
        uc.run();
    }
}
